package com.zyg.dao;

import com.zyg.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.util.List;
@Mapper
public interface DeptMapper {
    List<Dept> findAll(@Param("dept")Dept dept, @Param("offset") int offset, @Param("pageSize") int pageSize) throws IOException;

    int deleteDept(int deptId);

    int addDept(Dept dept);

    Dept findDeptById(int deptId);

    int updateDept(Dept dept);

    int count(Dept condtion);

    List<Dept> getDeptList();
}
